<template>
	<view style="width: 100%;height: 100vh;">
		<image :src="introImg" style="width: 100%;" mode="widthFix"></image>
		<!-- <button type="primary" class="call" @click="toWx()">联系老师获取体验资格</button> -->
	</view>
</template>

<script>
	export default {
		props: {
			introImg: {
				type: String,
				required: true,
				default: ''
			},
		},
		data() {
			return {}
		},
		mounted() {
			let that = this;
		},
		onLoad(options) {
			let that = this;
		},
		onShow() {
			let that = this;
		},
		methods: {
			toWx() {
				let that = this;
				let platform = uni.getSystemInfoSync().platform; //手机类型
				if (platform == 'ios') {
					window.webkit.messageHandlers.goWechatBoot.postMessage();
				}
				if (platform == 'android') {
					window.location.href = 'goWechat';
				}
			},
		},
	}
</script>

<style lang="scss" scoped>
	.call {
		position: fixed;
		bottom: 60rpx;
		left: 40rpx;
		background-color: #FFFFFF;
		font-size: 24rpx;
		width: calc(100% - 80rpx);
		height: 80rpx;
		line-height: 80rpx;
	}
</style>